//
//  CaptureView.h
//  VideoChat
//
//  Created by user on 2019/3/20.
//  Copyright © 2019 烧烤有点辣. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <AVFoundation/AVFoundation.h>

typedef void (^CallBackdidOutputSampleBuffer)(CMSampleBufferRef sampleBuffer, AVMediaType mediaType);

NS_ASSUME_NONNULL_BEGIN

@interface CaptureView : UIView

@property (nonatomic, copy) CallBackdidOutputSampleBuffer didOutputSampleBufferBlock;

- (instancetype)initWithFrame:(CGRect)frame DidOutputSampleBufferBlock:(CallBackdidOutputSampleBuffer)didOutputSampleBufferBlock;

- (void)starVideo;

- (void)stopVideo;

@end

NS_ASSUME_NONNULL_END
